package com.xlh.dto.courseTest.practice;

import lombok.Data;

import java.util.List;

/**
 * @author sy
 * 随堂练习 章节展示DTO
 */
@Data
public class PracticeChapterDTO {

    /**
     * 平均分
     */
    private String average;

    /**
     * 总人数
     */
    private Integer countUser;

    /**
     * 已提交人数
     */
    private Integer committedUserCount;


    /**
     * 已提交学生
     */
    private List<PracticeStudentInfoDTO> committedUsers;


    /**
     * 未提交人数
     */
    private Integer uncommittedUserCount;

    /**
     * 未提交学生
     */
    private List<PracticeStudentInfoDTO>  uncommittedUsers;


    public void setCommittedUsers(List<PracticeStudentInfoDTO> committedUsers) {
        this.committedUsers = committedUsers;
        this.committedUserCount = committedUsers.size();
    }


    public void setUncommittedUsers(List<PracticeStudentInfoDTO> uncommittedUsers) {
        this.uncommittedUsers = uncommittedUsers;
        this.uncommittedUserCount =  uncommittedUsers.size();
    }
}
